home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / svgabg52.zip / NOTES32K.SVG < prev    next >
Text File  |  1993-09-11  |  3KB  |  101 lines

  1. SuperVGA 32768 BGI driver
  2. Version 1.5
  3. August 28, 1993
  4.  
  5. Revisions:
  6.     1.3 - May 21, 1993
  7.     1.2 - April 20, 1993
  8.     1.15 - January 28, 1993
  9.     1.1 - June 12, 1992
  10.  
  11. This is the newest version of my SuperVGA 32768 BGI driver.  All functions
  12. have been implemented, but there may still be bugs.
  13.  
  14. Note:  Palette functions, and the mouse cursor will not work with this driver.
  15.  
  16.   Using the HiColor driver:
  17.  
  18.     Implementing the 32768 color driver involved several hacks, as
  19.     the BGI interface only supports 8-bit color values, but the driver
  20.     needed support for 15-bit color values.  The procedures that needed
  21.     to be changed were those that accepted color values, (SetColor,
  22.     SetFillStyle, SetFillPattern, PutPixel and Floodfill)  and those 
  23.     that return color values (GetColor and GetPixel).
  24.     As the HiColor modes do not support palettes, I decided to use
  25.     the SetRgbPalette call to set colors, as it accepts values for the 
  26.     R,G and B components of the color.
  27.  
  28.     The format of a pixel in the HiColor modes is:
  29.         -Byte 1- -Byte 0-
  30.         xRRRRRGG GGGBBBBB
  31.  
  32.     Several new functions are defined to make the color selection easier.
  33.     In addition, the macro RGB(rv,gv,bv) has been defined.  It packs
  34.     the R, G and B values into the format described above and returns the
  35.     combined color.
  36.  
  37.     * RealDrawColor(); - Sets the current drawing color.
  38.       Usage:
  39.         setcolor(RealDrawColor(RGB(rval,gval,bval)); - HiColor modes
  40.         setcolor(RealDrawColor(cval)); - (suggested for any other driver)
  41.  
  42.     * RealFillColor(); - Sets the current fill color.
  43.       Usage:
  44.         setfillstyle(fillstyle,RealFillColor(RGB(rval,gval,bval)));
  45.         setfillstyle(fillstyle,RealFillColor(cval));
  46.         setfillpattern(fillpat,RealFillColor(RGB(rval,gval,bval)));
  47.         setfillpattern(fillpat,RealFillColor(cval));
  48.  
  49.     * RealColor(); - For putpixel, sets the color of the pixel
  50.                - For floodfill, sets the color of the boundary
  51.         putpixel(x,y,RealColor(RGB(rval,gval,bval)));
  52.         putpixel(x,y,RealColor(cval));
  53.         floodfill(x,y,RealColor(RGB(rval,gval,bval)));
  54.         floodfill(x,y,RealColor(cval));
  55.  
  56.     * GetPixel normally only returns an 8-bit value.  However, the
  57.       value returned from the BGI driver is a 16-bit value in DX (the 
  58.       BGI kernel loads the value into AX and clears the upper 8 bits),
  59.       so to read the value of a pixel:
  60.  
  61.       In Pascal:
  62.         Color := getpixel(x,y);
  63.         inline($89/$56/<Color);  (* Loads 15-bit color value *)
  64.  
  65.       In C:
  66.         Color = getpixel(x,y);
  67.         Color = _DX;
  68.       
  69.  
  70.     * Support for the ATI XL card has been added (1.1) 
  71.         ATI only supports 640x480x32k
  72.  
  73.     * Paging has been added (1.1)
  74.  
  75.       Mode        Paging?        # of pages (with 1024k)
  76.       320x200    yes        8
  77.       640x350    yes        2
  78.       640x400    yes        2
  79.       640x480    no        1
  80.       800x600    no        1
  81.  
  82.     o Mouse code hooks added (1.15)
  83.  
  84.     o New card support added, changed old card support (1.2)
  85.         Acumos, Avance Logic 2101, Cirrus 54xx, Compaq, MXIC 68020, NCR, 
  86.         Primus 2000, Realtek
  87.       Not all cards support 32k colors.
  88.  
  89.     o Paging enhanced to work with new cards (1.2)
  90.  
  91.     o Fixed text clipping at right and bottom edges (1.3)
  92.  
  93.     o Various speed optimizations (line & solid bar) (1.3)
  94.  
  95.     o Added compile-time support for 8x8, 8x14, or 8x16 bitmap fonts (1.3)
  96.  
  97.     o Drivers now have compile-time support for BGI version 3.0.
  98.       Supports protected mode with Borland Pascal 7.0 (1.5)
  99.  
  100.     o 1024x768x32k and 1280x1024x32k modes are now supported. (1.5)
  101.